package com.xjc.system.result;

/**
 * 徐锦程
 * 时间:2024-10-01 15:16
 * 描述:响应码
 */
public enum ResultCode {

    SUCCESS(200, "操作成功"),
    FAIL(400, "操作失败"),
    UNAUTHORIZED(401, "用户认证失败"),
    NOTOPEANSET(402, "所属学校未开通服务"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误");

    private final int code;
    private final String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }
}
